/* 英语对话页面样式 */

/* 主容器样式 */
.english-chat-container {
    display: flex;
    flex-direction: column;
    height: 100vh;
    background-color: rgb(239, 242, 245);
}

.chat-main {
    display: flex;
    flex: 1;
    overflow: hidden;
    margin: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1);
    background-color: white;
}

/* 侧边栏样式 */
.chat-sidebar {
    width: 300px;
    border-right: 1px solid #eee;
    display: flex;
    flex-direction: column;
}

.sidebar-header {
    padding: 15px;
    border-bottom: 1px solid #eee;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border-radius: 8px 8px 0 0;
}

.sidebar-header h3 {
    margin: 0 0 10px;
    color: white;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.new-chat-btn {
    margin-bottom: 10px;
    width: 100%;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.new-chat-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.chat-contacts {
    flex: 1;
    overflow-y: auto;
    background: #fafbfc;
}

.chat-contacts::-webkit-scrollbar {
    width: 6px;
}

.chat-contacts::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.chat-contacts::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.chat-contacts::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* 联系人列表项样式 */
.contact-item {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    border-bottom: 1px solid #f5f5f5;
    position: relative;
    border-radius: 8px;
    margin: 4px 8px;
    transition: all 0.3s ease;
}

.contact-item:hover {
    background: linear-gradient(135deg, #f9f9f9, #f0f7ff);
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.contact-item.active {
    background: linear-gradient(135deg, #e6f7ff, #d4edda);
    border-left: 4px solid #409EFF;
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(64, 158, 255, 0.2);
}

.contact-main {
    display: flex;
    flex: 1;
    align-items: center;
    cursor: pointer;
}

.contact-info {
    flex: 1;
    margin-left: 10px;
    overflow: hidden;
}

.contact-name {
    font-weight: 600;
    margin-bottom: 4px;
    color: #2c3e50;
    transition: color 0.3s ease;
}

.contact-item.active .contact-name {
    color: #409EFF;
}

.contact-difficulty {
    margin-top: 5px;
}

.contact-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    margin-left: 10px;
}

.contact-actions {
    display: flex;
    align-items: center;
    opacity: 0.8;
    transition: all 0.3s ease;
    margin-left: 10px;
    gap: 5px;
}

.contact-item:hover .contact-actions {
    opacity: 1;
    transform: translateX(-5px);
}

.action-icon {
    font-size: 20px;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.edit-icon {
    color: #409EFF;
    background: linear-gradient(135deg, rgba(64, 158, 255, 0.15), rgba(64, 158, 255, 0.05));
    border: 1px solid rgba(64, 158, 255, 0.2);
}

.delete-icon {
    color: #F56C6C;
    background: linear-gradient(135deg, rgba(245, 108, 108, 0.15), rgba(245, 108, 108, 0.05));
    border: 1px solid rgba(245, 108, 108, 0.2);
}

.edit-icon:hover {
    background: linear-gradient(135deg, rgba(64, 158, 255, 0.25), rgba(64, 158, 255, 0.15));
    transform: scale(1.15) rotate(5deg);
    box-shadow: 0 4px 12px rgba(64, 158, 255, 0.3);
}

.delete-icon:hover {
    background: linear-gradient(135deg, rgba(245, 108, 108, 0.25), rgba(245, 108, 108, 0.15));
    transform: scale(1.15) rotate(-5deg);
    box-shadow: 0 4px 12px rgba(245, 108, 108, 0.3);
}

/* 聊天内容区域样式 */
.chat-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.chat-header {
    padding: 15px;
    border-bottom: 1px solid #eee;
    display: flex;
    flex-direction: column;
}

.chat-header h3 {
    margin: 0 0 10px 0;
}

.chat-options {
    display: flex;
    flex-wrap: wrap;
}

.keyword-tag {
    margin-right: 8px;
    margin-bottom: 5px;
}

.messages-container {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    background-color: #f9f9f9;
}

.messages {
    display: flex;
    flex-direction: column;
}

/* 消息样式 */
.message {
    display: flex;
    margin-bottom: 15px;
    max-width: 80%;
    animation: messageSlideIn 0.3s ease-out;
}

.own-message {
    flex-direction: row-reverse;
    align-self: flex-end;
}

.message-content {
    margin: 0 10px;
    max-width: 70%;
}

.message-text {
    padding: 10px;
    border-radius: 10px;
    background: linear-gradient(135deg, #ffffff, #f8f9fa);
    border: 1px solid #e9ecef;
    border-radius: 18px 18px 18px 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    position: relative;
    font-size: 14px;
    line-height: 1.6;
}

.own-message .message-text {
    background: linear-gradient(135deg, #409EFF, #67C23A);
    color: white;
    border-radius: 18px 18px 4px 18px;
    box-shadow: 0 2px 8px rgba(64, 158, 255, 0.3);
}

.message-text::before {
    content: '';
    position: absolute;
    width: 0;
    height: 0;
    border-style: solid;
}

.message:not(.own-message) .message-text::before {
    left: -8px;
    bottom: 8px;
    border-width: 0 8px 8px 0;
    border-color: transparent #ffffff transparent transparent;
}

.own-message .message-text::before {
    right: -8px;
    bottom: 8px;
    border-width: 0 0 8px 8px;
    border-color: transparent transparent transparent #409EFF;
}

.message-time {
    font-size: 11px;
    opacity: 0.7;
    margin-top: 4px;
    text-align: right;
}

.message-actions {
    margin-top: 8px;
    opacity: 0;
    transition: opacity 0.3s;
}

.message:hover .message-actions {
    opacity: 1;
}

.regenerate-btn {
    padding: 2px 8px;
    font-size: 12px;
    color: #409EFF;
    border: none;
    background: none;
}

.regenerate-btn:hover {
    background-color: rgba(64, 158, 255, 0.1);
    border-radius: 4px;
}

/* 无聊天选择状态样式 */
.no-chat-selected {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #aaa;
}

.chat-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
    opacity: 0.5;
}

.new-chat-big-btn {
    margin-top: 20px;
    padding: 12px 24px;
    font-size: 16px;
}

/* 聊天输入区域样式 */
.chat-input {
    padding: 20px 15px;
    border-top: 1px solid #eee;
    display: flex;
    align-items: flex-end;
    gap: 12px;
    background: linear-gradient(to bottom, #ffffff, #fafbfc);
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.05);
}

.chat-input .el-button--primary {
    background: linear-gradient(135deg, #409EFF, #67C23A);
    border: none;
    border-radius: 12px;
    padding: 12px 20px;
    font-size: 15px;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(64, 158, 255, 0.3);
    transition: all 0.3s ease;
    min-width: 80px;
    height: 60px;
}

.chat-input .el-button--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(64, 158, 255, 0.4);
    background: linear-gradient(135deg, #5ba1ff, #7cd448);
}

.chat-input .el-button--primary:active {
    transform: translateY(0);
}

.chat-input .el-button--primary.is-disabled {
    background: #c0c4cc;
    box-shadow: none;
    transform: none;
}

.input-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.input-actions i {
    font-size: 22px;
    color: #8c8c8c;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.3s ease;
    background: #f5f5f5;
}

.input-actions i:hover {
    color: #409EFF;
    background: rgba(64, 158, 255, 0.1);
    transform: scale(1.1);
}

.input-field {
    flex: 1;
    position: relative;
    margin-bottom: 0;
}

.input-field textarea {
    width: 90%;
    padding: 12px 15px;
    border: 2px solid #e8e8e8;
    border-radius: 12px;
    resize: none;
    height: 60px;
    outline: none;
    font-size: 15px;
    line-height: 1.5;
    transition: all 0.3s ease;
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.input-field textarea:focus {
    border-color: #409EFF;
    box-shadow: 0 0 0 3px rgba(64, 158, 255, 0.1);
}

.input-tip {
    position: absolute;
    right: 60px;
    bottom: 6px;
    color: #aaa;
    font-size: 11px;
    pointer-events: none;
}

/* 对话框整体样式 */
.dialog-content {
    padding: 0 20px;
}

.new-chat-dialog .el-dialog,
.settings-dialog .el-dialog {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    position: relative;
    top: 50%;
    transform: translateY(-50%);
}

/* 对话框美化样式 - 与界面风格统一 */
.new-chat-dialog.el-dialog,
.settings-dialog.el-dialog,
.rename-dialog.el-dialog,
.english-chat-container .new-chat-dialog.el-dialog,
.english-chat-container .settings-dialog.el-dialog,
.english-chat-container .rename-dialog.el-dialog {
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15), 0 8px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.new-chat-dialog .el-dialog__header,
.settings-dialog .el-dialog__header,
.rename-dialog .el-dialog__header,
.english-chat-container .new-chat-dialog .el-dialog__header,
.english-chat-container .settings-dialog .el-dialog__header,
.english-chat-container .rename-dialog .el-dialog__header {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 20px 24px;
    border-bottom: none;
    position: relative;
    overflow: hidden;
}

.new-chat-dialog .el-dialog__header::before,
.settings-dialog .el-dialog__header::before,
.rename-dialog .el-dialog__header::before,
.english-chat-container .new-chat-dialog .el-dialog__header::before,
.english-chat-container .settings-dialog .el-dialog__header::before,
.english-chat-container .rename-dialog .el-dialog__header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    pointer-events: none;
}

.new-chat-dialog .el-dialog__title,
.settings-dialog .el-dialog__title,
.rename-dialog .el-dialog__title,
.english-chat-container .new-chat-dialog .el-dialog__title,
.english-chat-container .settings-dialog .el-dialog__title,
.english-chat-container .rename-dialog .el-dialog__title {
    color: white;
    font-weight: 600;
    font-size: 18px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    z-index: 1;
    position: relative;
}

.new-chat-dialog .el-dialog__headerbtn,
.settings-dialog .el-dialog__headerbtn,
.rename-dialog .el-dialog__headerbtn,
.english-chat-container .new-chat-dialog .el-dialog__headerbtn,
.english-chat-container .settings-dialog .el-dialog__headerbtn,
.english-chat-container .rename-dialog .el-dialog__headerbtn {
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    transition: all 0.3s ease;
    z-index: 2;
    position: absolute;
}

.new-chat-dialog .el-dialog__headerbtn:hover,
.settings-dialog .el-dialog__headerbtn:hover,
.rename-dialog .el-dialog__headerbtn:hover,
.english-chat-container .new-chat-dialog .el-dialog__headerbtn:hover,
.english-chat-container .settings-dialog .el-dialog__headerbtn:hover,
.english-chat-container .rename-dialog .el-dialog__headerbtn:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: scale(1.1);
}

.new-chat-dialog .el-dialog__close,
.settings-dialog .el-dialog__close,
.rename-dialog .el-dialog__close,
.english-chat-container .new-chat-dialog .el-dialog__close,
.english-chat-container .settings-dialog .el-dialog__close,
.english-chat-container .rename-dialog .el-dialog__close {
    color: white;
    font-size: 20px;
    transition: all 0.3s ease;
}

.new-chat-dialog .el-dialog__close:hover,
.settings-dialog .el-dialog__close:hover,
.rename-dialog .el-dialog__close:hover,
.english-chat-container .new-chat-dialog .el-dialog__close:hover,
.english-chat-container .settings-dialog .el-dialog__close:hover,
.english-chat-container .rename-dialog .el-dialog__close:hover {
    color: rgba(255, 255, 255, 0.8);
    transform: rotate(90deg);
}

.new-chat-dialog .el-dialog__body,
.settings-dialog .el-dialog__body,
.rename-dialog .el-dialog__body,
.english-chat-container .new-chat-dialog .el-dialog__body,
.english-chat-container .settings-dialog .el-dialog__body,
.english-chat-container .rename-dialog .el-dialog__body {
    padding: 24px;
    background: linear-gradient(to bottom, #ffffff, #fafbfc);
    position: relative;
}

/* 表单美化样式 - 与界面风格统一 */
.new-chat-dialog .dialog-content .el-form-item__label,
.settings-dialog .dialog-content .el-form-item__label,
.english-chat-container .dialog-content .el-form-item__label {
    color: #2c3e50;
    font-weight: 600;
    font-size: 15px;
    margin-bottom: 10px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.new-chat-dialog .dialog-content .el-input__inner,
.new-chat-dialog .dialog-content .el-textarea__inner,
.new-chat-dialog .dialog-content .el-select .el-input__inner,
.settings-dialog .dialog-content .el-input__inner,
.settings-dialog .dialog-content .el-textarea__inner,
.settings-dialog .dialog-content .el-select .el-input__inner,
.english-chat-container .dialog-content .el-input__inner,
.english-chat-container .dialog-content .el-textarea__inner,
.english-chat-container .dialog-content .el-select .el-input__inner {
    border: 2px solid #e8e8e8;
    border-radius: 12px;
    padding: 12px 16px;
    font-size: 15px;
    transition: all 0.3s ease;
    background: linear-gradient(to bottom, #ffffff, #fafbfc);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    line-height: 1.5;
}

.new-chat-dialog .dialog-content .el-input__inner:focus,
.new-chat-dialog .dialog-content .el-textarea__inner:focus,
.new-chat-dialog .dialog-content .el-select .el-input__inner:focus,
.settings-dialog .dialog-content .el-input__inner:focus,
.settings-dialog .dialog-content .el-textarea__inner:focus,
.settings-dialog .dialog-content .el-select .el-input__inner:focus,
.english-chat-container .dialog-content .el-input__inner:focus,
.english-chat-container .dialog-content .el-textarea__inner:focus,
.english-chat-container .dialog-content .el-select .el-input__inner:focus {
    border-color: #409eff;
    outline: none;
    box-shadow: 0 0 0 4px rgba(64, 158, 255, 0.15), 0 4px 12px rgba(64, 158, 255, 0.1);
    background: #ffffff;
    transform: translateY(-1px);
}

.new-chat-dialog .dialog-content .el-input:hover .el-input__inner,
.new-chat-dialog .dialog-content .el-textarea:hover .el-textarea__inner,
.new-chat-dialog .dialog-content .el-select:hover .el-input__inner,
.settings-dialog .dialog-content .el-input:hover .el-input__inner,
.settings-dialog .dialog-content .el-textarea:hover .el-textarea__inner,
.settings-dialog .dialog-content .el-select:hover .el-input__inner,
.english-chat-container .dialog-content .el-input:hover .el-input__inner,
.english-chat-container .dialog-content .el-textarea:hover .el-textarea__inner,
.english-chat-container .dialog-content .el-select:hover .el-input__inner {
    border-color: #67C23A;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(103, 194, 58, 0.15);
}

/* 下拉选择器美化 - 现代化设计 */
.new-chat-dialog .dialog-content .el-select-dropdown,
.settings-dialog .dialog-content .el-select-dropdown,
.english-chat-container .dialog-content .el-select-dropdown {
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15), 0 4px 10px rgba(0, 0, 0, 0.1);
    border: 2px solid rgba(64, 158, 255, 0.1);
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.95);
}

.new-chat-dialog .dialog-content .el-select-dropdown__item,
.settings-dialog .dialog-content .el-select-dropdown__item,
.english-chat-container .dialog-content .el-select-dropdown__item {
    padding: 12px 16px;
    transition: all 0.3s ease;
    border-radius: 8px;
    margin: 2px 8px;
    font-size: 14px;
    font-weight: 500;
}

.new-chat-dialog .dialog-content .el-select-dropdown__item:hover,
.settings-dialog .dialog-content .el-select-dropdown__item:hover,
.english-chat-container .dialog-content .el-select-dropdown__item:hover {
    background: linear-gradient(135deg, #f0f7ff, #e6f7ff);
    color: #409eff;
    transform: translateX(5px);
    box-shadow: 0 2px 8px rgba(64, 158, 255, 0.15);
}

.new-chat-dialog .dialog-content .el-select-dropdown__item.selected,
.settings-dialog .dialog-content .el-select-dropdown__item.selected,
.english-chat-container .dialog-content .el-select-dropdown__item.selected {
    background: linear-gradient(135deg, #409eff, #67C23A);
    color: white;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(64, 158, 255, 0.3);
    transform: translateX(5px);
}

/* 多选标签美化 - 精美设计 */
.new-chat-dialog .dialog-content .el-tag,
.settings-dialog .dialog-content .el-tag,
.english-chat-container .dialog-content .el-tag {
    background: linear-gradient(135deg, #f0f7ff, #e6f7ff);
    border: 2px solid rgba(64, 158, 255, 0.2);
    color: #409eff;
    border-radius: 20px;
    padding: 8px 16px;
    margin: 4px 6px 4px 0;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(64, 158, 255, 0.1);
    min-height: 32px;
    display: inline-flex;
    align-items: center;
    line-height: 1.2;
}

.new-chat-dialog .dialog-content .el-tag:hover,
.settings-dialog .dialog-content .el-tag:hover,
.english-chat-container .dialog-content .el-tag:hover {
    background: linear-gradient(135deg, #409eff, #67C23A);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(64, 158, 255, 0.3);
}

.new-chat-dialog .dialog-content .el-tag .el-tag__close,
.settings-dialog .dialog-content .el-tag .el-tag__close,
.english-chat-container .dialog-content .el-tag .el-tag__close {
    color: #409eff;
    font-size: 14px;
    margin-left: 8px;
    margin-right: 0;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    order: 2;
    flex-shrink: 0;
}

.new-chat-dialog .dialog-content .el-tag .el-tag__close:hover,
.settings-dialog .dialog-content .el-tag .el-tag__close:hover,
.english-chat-container .dialog-content .el-tag .el-tag__close:hover {
    background: rgba(245, 108, 108, 0.15);
    color: #F56C6C;
    transform: scale(1.2) rotate(90deg);
}

.new-chat-dialog .dialog-content .el-tag:hover .el-tag__close,
.settings-dialog .dialog-content .el-tag:hover .el-tag__close,
.english-chat-container .dialog-content .el-tag:hover .el-tag__close {
    color: rgba(255, 255, 255, 0.8);
}

.new-chat-dialog .dialog-content .el-tag:hover .el-tag__close:hover,
.settings-dialog .dialog-content .el-tag:hover .el-tag__close:hover,
.english-chat-container .dialog-content .el-tag:hover .el-tag__close:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

/* 关键词标签内文本内容样式 */
.new-chat-dialog .dialog-content .el-tag .el-tag__content,
.settings-dialog .dialog-content .el-tag .el-tag__content,
.english-chat-container .dialog-content .el-tag .el-tag__content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    order: 1;
    flex: 1;
    min-width: 0;
}

/* 关键词标签文本样式 */
.new-chat-dialog .dialog-content .el-tag .el-tag__text,
.settings-dialog .dialog-content .el-tag .el-tag__text,
.english-chat-container .dialog-content .el-tag .el-tag__text {
    order: 1;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* 对话框底部按钮美化 - 精美设计 */
.new-chat-dialog .dialog-footer .el-button,
.settings-dialog .dialog-footer .el-button,
.english-chat-container .dialog-footer .el-button {
    border-radius: 12px;
    padding: 12px 24px;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.new-chat-dialog .dialog-footer .el-button::before,
.settings-dialog .dialog-footer .el-button::before,
.english-chat-container .dialog-footer .el-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.new-chat-dialog .dialog-footer .el-button:hover::before,
.settings-dialog .dialog-footer .el-button:hover::before,
.english-chat-container .dialog-footer .el-button:hover::before {
    left: 100%;
}

.new-chat-dialog .dialog-footer .el-button--default,
.settings-dialog .dialog-footer .el-button--default,
.english-chat-container .dialog-footer .el-button--default {
    background: linear-gradient(135deg, #ffffff, #f8f9fa);
    color: #2c3e50;
    border: 2px solid #e8e8e8;
}

.new-chat-dialog .dialog-footer .el-button--default:hover,
.settings-dialog .dialog-footer .el-button--default:hover,
.english-chat-container .dialog-footer .el-button--default:hover {
    background: linear-gradient(135deg, #f0f7ff, #e6f7ff);
    color: #409eff;
    border-color: #409eff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(64, 158, 255, 0.25);
}

.new-chat-dialog .dialog-footer .el-button--primary,
.settings-dialog .dialog-footer .el-button--primary,
.english-chat-container .dialog-footer .el-button--primary {
    background: linear-gradient(135deg, #409eff, #67C23A);
    border: none;
    color: white;
    box-shadow: 0 4px 15px rgba(64, 158, 255, 0.3);
}

.new-chat-dialog .dialog-footer .el-button--primary:hover,
.settings-dialog .dialog-footer .el-button--primary:hover,
.english-chat-container .dialog-footer .el-button--primary:hover {
    background: linear-gradient(135deg, #5ba1ff, #7cd448);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(64, 158, 255, 0.4);
}

.new-chat-dialog .dialog-footer .el-button--primary:active,
.settings-dialog .dialog-footer .el-button--primary:active,
.english-chat-container .dialog-footer .el-button--primary:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(64, 158, 255, 0.3);
}

/* 文本域特殊样式 - 现代化设计 */
.new-chat-dialog .dialog-content .el-textarea__inner,
.settings-dialog .dialog-content .el-textarea__inner,
.english-chat-container .dialog-content .el-textarea__inner {
    min-height: 100px !important;
    resize: vertical;
    line-height: 1.8;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.new-chat-dialog .dialog-content .el-textarea__inner:focus,
.settings-dialog .dialog-content .el-textarea__inner:focus,
.english-chat-container .dialog-content .el-textarea__inner:focus {
    min-height: 120px !important;
}

.new-chat-dialog .dialog-content .el-form-item,
.settings-dialog .dialog-content .el-form-item,
.english-chat-container .dialog-content .el-form-item {
    margin-bottom: 24px;
    position: relative;
}

.new-chat-dialog .dialog-content .el-form-item:last-child,
.settings-dialog .dialog-content .el-form-item:last-child,
.english-chat-container .dialog-content .el-form-item:last-child {
    margin-bottom: 16px;
}

/* 动画效果 - 精美过渡 */
@keyframes dialogSlideIn {
    from {
        opacity: 0;
        transform: scale(0.85) translateY(-20px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes dialogFadeIn {
    from {
        opacity: 0;
        backdrop-filter: blur(0px);
    }

    to {
        opacity: 1;
        backdrop-filter: blur(10px);
    }
}

.new-chat-dialog.el-dialog,
.settings-dialog.el-dialog,
.rename-dialog.el-dialog,
.english-chat-container .new-chat-dialog.el-dialog,
.english-chat-container .settings-dialog.el-dialog,
.english-chat-container .rename-dialog.el-dialog {
    animation: dialogSlideIn 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.el-dialog__wrapper {
    animation: dialogFadeIn 0.3s ease-out;
}

/* 对话框遮罩美化 */
.el-dialog__wrapper {
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
}

/* 输入框占位符样式美化 */
.new-chat-dialog .dialog-content .el-input__inner::placeholder,
.new-chat-dialog .dialog-content .el-textarea__inner::placeholder,
.settings-dialog .dialog-content .el-input__inner::placeholder,
.settings-dialog .dialog-content .el-textarea__inner::placeholder,
.english-chat-container .dialog-content .el-input__inner::placeholder,
.english-chat-container .dialog-content .el-textarea__inner::placeholder {
    color: #9ca3af;
    font-style: italic;
    transition: all 0.3s ease;
}

.new-chat-dialog .dialog-content .el-input__inner:focus::placeholder,
.new-chat-dialog .dialog-content .el-textarea__inner:focus::placeholder,
.settings-dialog .dialog-content .el-input__inner:focus::placeholder,
.settings-dialog .dialog-content .el-textarea__inner:focus::placeholder,
.english-chat-container .dialog-content .el-input__inner:focus::placeholder,
.english-chat-container .dialog-content .el-textarea__inner:focus::placeholder {
    color: #d1d5db;
    transform: translateY(-2px);
}

/* 表单验证错误样式美化 */
.new-chat-dialog .dialog-content .el-form-item.is-error .el-input__inner,
.new-chat-dialog .dialog-content .el-form-item.is-error .el-textarea__inner,
.settings-dialog .dialog-content .el-form-item.is-error .el-input__inner,
.settings-dialog .dialog-content .el-form-item.is-error .el-textarea__inner,
.english-chat-container .dialog-content .el-form-item.is-error .el-input__inner,
.english-chat-container .dialog-content .el-form-item.is-error .el-textarea__inner {
    border-color: #F56C6C;
    box-shadow: 0 0 0 4px rgba(245, 108, 108, 0.15);
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-5px);
    }

    75% {
        transform: translateX(5px);
    }
}

/* 加载状态样式 */
.new-chat-dialog .dialog-content .el-loading-mask,
.settings-dialog .dialog-content .el-loading-mask,
.english-chat-container .dialog-content .el-loading-mask {
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(5px);
}

/* 滚动条美化 */
.new-chat-dialog .dialog-content .el-select-dropdown__wrap::-webkit-scrollbar,
.settings-dialog .dialog-content .el-select-dropdown__wrap::-webkit-scrollbar,
.english-chat-container .dialog-content .el-select-dropdown__wrap::-webkit-scrollbar {
    width: 6px;
}

.new-chat-dialog .dialog-content .el-select-dropdown__wrap::-webkit-scrollbar-track,
.settings-dialog .dialog-content .el-select-dropdown__wrap::-webkit-scrollbar-track,
.english-chat-container .dialog-content .el-select-dropdown__wrap::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.new-chat-dialog .dialog-content .el-select-dropdown__wrap::-webkit-scrollbar-thumb,
.settings-dialog .dialog-content .el-select-dropdown__wrap::-webkit-scrollbar-thumb,
.english-chat-container .dialog-content .el-select-dropdown__wrap::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #409eff, #67C23A);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.new-chat-dialog .dialog-content .el-select-dropdown__wrap::-webkit-scrollbar-thumb:hover,
.settings-dialog .dialog-content .el-select-dropdown__wrap::-webkit-scrollbar-thumb:hover,
.english-chat-container .dialog-content .el-select-dropdown__wrap::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #5ba1ff, #7cd448);
}

@keyframes messageSlideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}



/* 提示文本样式 - 使用更柔和的颜色 */
.english-chat-container .message-text .hint-text {
    color: #9ca3af !important;
    font-style: italic !important;
    font-weight: normal !important;
    font-size: 0.85em !important;
    opacity: 0.8 !important;
    background-color: rgba(156, 163, 175, 0.08) !important;
    padding: 2px 6px !important;
    border-radius: 6px !important;
    margin: 0 2px !important;
    border-left: 2px solid rgba(156, 163, 175, 0.3) !important;
}

/* 用户消息中的提示文本样式 - 使用半透明白色 */
.english-chat-container .own-message .message-text .hint-text {
    color: rgba(255, 255, 255, 0.75) !important;
    background-color: rgba(255, 255, 255, 0.1) !important;
    border-left: 2px solid rgba(255, 255, 255, 0.3) !important;
}

/* 可点击单词样式 - 与普通文字完全一致 */
.english-chat-container .message-text .clickable-word {
    cursor: pointer !important;
    color: inherit !important;
    text-decoration: none !important;
    display: inline !important;
    font-weight: inherit !important;
    font-size: inherit !important;
    line-height: inherit !important;
    font-family: inherit !important;
    background: transparent !important;
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 0 !important;
    transition: none !important;
    border-bottom: none !important;
}

/* 可点击单词悬停效果 - 保持最小变化 */
.english-chat-container .message-text .clickable-word:hover {
    background-color: transparent !important;
    color: inherit !important;
    border-bottom: none !important;
    transform: none !important;
}

/* 用户消息中的可点击单词样式 - 与普通文字一致 */
.english-chat-container .own-message .message-text .clickable-word {
    color: inherit !important;
    font-weight: inherit !important;
    font-family: inherit !important;
}

/* 用户消息中的可点击单词悬停效果 - 保持一致 */
.english-chat-container .own-message .message-text .clickable-word:hover {
    background-color: transparent !important;
    color: inherit !important;
    border-bottom: none !important;
}

/* 隐藏多选标签的拖拽排序按钮 */
.new-chat-dialog .dialog-content .el-tag .el-icon-close::before,
.new-chat-dialog .dialog-content .el-tag .el-icon-close::after,
.settings-dialog .dialog-content .el-tag .el-icon-close::before,
.settings-dialog .dialog-content .el-tag .el-icon-close::after,
.english-chat-container .dialog-content .el-tag .el-icon-close::before,
.english-chat-container .dialog-content .el-tag .el-icon-close::after {
    display: none !important;
}

/* 隐藏多选框中的拖拽排序图标 */
.new-chat-dialog .dialog-content .el-select__tags .el-tag .el-icon-arrow-up,
.new-chat-dialog .dialog-content .el-select__tags .el-tag .el-icon-arrow-down,
.new-chat-dialog .dialog-content .el-select__tags .el-tag .el-icon-sort,
.settings-dialog .dialog-content .el-select__tags .el-tag .el-icon-arrow-up,
.settings-dialog .dialog-content .el-select__tags .el-tag .el-icon-arrow-down,
.settings-dialog .dialog-content .el-select__tags .el-tag .el-icon-sort,
.english-chat-container .dialog-content .el-select__tags .el-tag .el-icon-arrow-up,
.english-chat-container .dialog-content .el-select__tags .el-tag .el-icon-arrow-down,
.english-chat-container .dialog-content .el-select__tags .el-tag .el-icon-sort {
    display: none !important;
}

/* 隐藏所有可能的排序相关元素 */
.new-chat-dialog .dialog-content .el-select .el-tag .sortable-handle,
.new-chat-dialog .dialog-content .el-select .el-tag .sortable-ghost,
.new-chat-dialog .dialog-content .el-select .el-tag .sortable-drag,
.settings-dialog .dialog-content .el-select .el-tag .sortable-handle,
.settings-dialog .dialog-content .el-select .el-tag .sortable-ghost,
.settings-dialog .dialog-content .el-select .el-tag .sortable-drag,
.english-chat-container .dialog-content .el-select .el-tag .sortable-handle,
.english-chat-container .dialog-content .el-select .el-tag .sortable-ghost,
.english-chat-container .dialog-content .el-select .el-tag .sortable-drag {
    display: none !important;
}

/* 移除标签的拖拽功能样式 */
.new-chat-dialog .dialog-content .el-select .el-tag,
.settings-dialog .dialog-content .el-select .el-tag,
.english-chat-container .dialog-content .el-select .el-tag {
    cursor: default !important;
    user-select: none !important;
    -webkit-user-drag: none !important;
    -moz-user-select: none !important;
    -ms-user-select: none !important;
}

/* 隐藏特定类型el-tag的上下增减按钮 */
.el-tag.el-tag--info .el-icon-arrow-up,
.el-tag.el-tag--info .el-icon-arrow-down,
.el-tag.el-tag--info .el-icon-sort,
.el-tag.el-tag--small .el-icon-arrow-up,
.el-tag.el-tag--small .el-icon-arrow-down,
.el-tag.el-tag--small .el-icon-sort,
.el-tag.el-tag--light .el-icon-arrow-up,
.el-tag.el-tag--light .el-icon-arrow-down,
.el-tag.el-tag--light .el-icon-sort {
    display: none !important;
}

/* 隐藏特定类型el-tag的拖拽排序手柄 */
.el-tag.el-tag--info .sortable-handle,
.el-tag.el-tag--info .sortable-ghost,
.el-tag.el-tag--info .sortable-drag,
.el-tag.el-tag--small .sortable-handle,
.el-tag.el-tag--small .sortable-ghost,
.el-tag.el-tag--small .sortable-drag,
.el-tag.el-tag--light .sortable-handle,
.el-tag.el-tag--light .sortable-ghost,
.el-tag.el-tag--light .sortable-drag {
    display: none !important;
}

/* 禁用特定类型el-tag的拖拽功能 */
.el-tag.el-tag--info,
.el-tag.el-tag--small,
.el-tag.el-tag--light {
    -webkit-user-drag: none !important;
    -moz-user-select: none !important;
    -ms-user-select: none !important;
    user-select: none !important;
}

/* 隐藏可能的增减按钮图标 */
.el-tag.el-tag--info .el-icon-plus,
.el-tag.el-tag--info .el-icon-minus,
.el-tag.el-tag--info .el-icon-circle-plus,
.el-tag.el-tag--info .el-icon-circle-minus,
.el-tag.el-tag--small .el-icon-plus,
.el-tag.el-tag--small .el-icon-minus,
.el-tag.el-tag--small .el-icon-circle-plus,
.el-tag.el-tag--small .el-icon-circle-minus,
.el-tag.el-tag--light .el-icon-plus,
.el-tag.el-tag--light .el-icon-minus,
.el-tag.el-tag--light .el-icon-circle-plus,
.el-tag.el-tag--light .el-icon-circle-minus {
    display: none !important;
}

/* 如果标签在select组件内，也要隐藏相关按钮 */
.el-select .el-tag.el-tag--info .el-icon-arrow-up,
.el-select .el-tag.el-tag--info .el-icon-arrow-down,
.el-select .el-tag.el-tag--info .el-icon-sort,
.el-select .el-tag.el-tag--small .el-icon-arrow-up,
.el-select .el-tag.el-tag--small .el-icon-arrow-down,
.el-select .el-tag.el-tag--small .el-icon-sort,
.el-select .el-tag.el-tag--light .el-icon-arrow-up,
.el-select .el-tag.el-tag--light .el-icon-arrow-down,
.el-select .el-tag.el-tag--light .el-icon-sort {
    display: none !important;
}

/* 隐藏可能存在的数字调节按钮 */
.el-tag.el-tag--info .el-input-number__increase,
.el-tag.el-tag--info .el-input-number__decrease,
.el-tag.el-tag--small .el-input-number__increase,
.el-tag.el-tag--small .el-input-number__decrease,
.el-tag.el-tag--light .el-input-number__increase,
.el-tag.el-tag--light .el-input-number__decrease {
    display: none !important;
}